//导入express
const express  =require('express')
//创建express实例
const app = express()
//导入bodyParser
var bodyParser = require('body-parser')
//导入cors
const cors = require('cors')
app.use(cors())
app.use(bodyParser.urlencoded({extended:false}))
app.use(bodyParser.json())

app.listen(3007, () => {
	console.log('http://127.0.0.1:3007')
})